package com.project.service;

import com.project.dao.IUserDao;
import com.project.util.Factory;

public class UserService {
    private IUserDao dao = (IUserDao) Factory.getBean("IUserDao");

    public void add(){
        dao.add();
        System.out.println("记录日志");
    }

    public static void main(String[] args) {
        UserService service = new UserService();
        service.add();
    }
}
